package com.xian.tszs.meal.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xian.tszs.meal.dto.FrontGoodsDTO;
import com.xian.tszs.meal.entity.TsAdmin;
import com.xian.tszs.meal.entity.TsGoods;
import com.xian.tszs.meal.mapper.FrontGoodsMapper;
import com.xian.tszs.meal.mapper.TsAdminMapper;
import com.xian.tszs.meal.service.FrontGoodsService;

@Service
public class FrontGoodsServiceImpl implements FrontGoodsService {

	@Autowired
	private TsAdminMapper tsAdminMapper;
	
	@Autowired
	private FrontGoodsMapper frontGoodsMapper;
	
	@Override
	public List<FrontGoodsDTO> loadGoodsByBusiness(String id) {
		
		return frontGoodsMapper.loadGoodsByBusiness(id);
	}

	@Override
	public TsAdmin loadBusiInfo(String id) {
		
		return tsAdminMapper.findAdminById(id);
	}

	@Override
	public List<TsGoods> loadGoodsInfoByIds(String[] ids) {
		
		
		return frontGoodsMapper.loadGoodsInfoByIds(ids);
	}

}
